package dmxGroupControl.listeners;

import dmxGroupControl.Universe;

public abstract class Mapping
{
	String attribute;
	Universe universe;
	
	protected Mapping(Universe universe, String attribute)
	{
		this.attribute = attribute;
		this.universe = universe;
	}
	
	public String GetAttribute()
	{
		return attribute;
	}
	
	public void SetAttribute(String value)
	{
		attribute = value;
	}
	
	public void SetUniverse(Universe value)
	{
	    universe = value;
	}
	
	public Universe GetUniverse()
	{
	    return universe;
	}
	
	public abstract boolean Matches(Object matchTo);
	public abstract String GetPattern();
	public abstract void SetPattern(String value);
	public abstract int GetGroup(Object matchTo, int groupOffset);
	public abstract float GetValue(Object matchTo);
}
